Skip to main content

estuary_client.PinningApi

All URIs are relative to //api.estuary.tech/

MethodHTTP requestDescription
pinning_pins_getGET /pinning/pinsList all pin status objects
pinning_pins_pinid_deleteDELETE /pinning/pins/{pinid}Delete a pinned object
pinning_pins_pinid_getGET /pinning/pins/{pinid}Get a pin status object
pinning_pins_pinid_postPOST /pinning/pins/{pinid}Replace a pinned object
pinning_pins_postPOST /pinning/pinsAdd and pin object

pinning_pins_get

TypesIpfsListPinStatusResponse pinning_pins_get()

List all pin status objects

This endpoint lists all pin status objects

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.PinningApi(estuary_client.ApiClient(configuration))

try:
# List all pin status objects
api_response = api_instance.pinning_pins_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling PinningApi->pinning_pins_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

TypesIpfsListPinStatusResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pinning_pins_pinid_delete

pinning_pins_pinid_delete(pinid)

Delete a pinned object

This endpoint deletes a pinned object.

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.PinningApi(estuary_client.ApiClient(configuration))
pinid = 'pinid_example' # str | Pin ID

try:
# Delete a pinned object
api_instance.pinning_pins_pinid_delete(pinid)
except ApiException as e:
print("Exception when calling PinningApi->pinning_pins_pinid_delete: %s\n" % e)

Parameters

NameTypeDescriptionNotes
pinidstrPin ID

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pinning_pins_pinid_get

TypesIpfsPinStatusResponse pinning_pins_pinid_get(pinid)

Get a pin status object

This endpoint returns a pin status object.

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.PinningApi(estuary_client.ApiClient(configuration))
pinid = 'pinid_example' # str | cid

try:
# Get a pin status object
api_response = api_instance.pinning_pins_pinid_get(pinid)
pprint(api_response)
except ApiException as e:
print("Exception when calling PinningApi->pinning_pins_pinid_get: %s\n" % e)

Parameters

NameTypeDescriptionNotes
pinidstrcid

Return type

TypesIpfsPinStatusResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pinning_pins_pinid_post

TypesIpfsPinStatusResponse pinning_pins_pinid_post(body, pinid)

Replace a pinned object

This endpoint replaces a pinned object.

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.PinningApi(estuary_client.ApiClient(configuration))
body = estuary_client.TypesIpfsPin() # TypesIpfsPin | New pin
pinid = 'pinid_example' # str | Pin ID to be replaced

try:
# Replace a pinned object
api_response = api_instance.pinning_pins_pinid_post(body, pinid)
pprint(api_response)
except ApiException as e:
print("Exception when calling PinningApi->pinning_pins_pinid_post: %s\n" % e)

Parameters

NameTypeDescriptionNotes
bodyTypesIpfsPinNew pin
pinidstrPin ID to be replaced

Return type

TypesIpfsPinStatusResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pinning_pins_post

TypesIpfsPinStatusResponse pinning_pins_post(body, ignore_dupes=ignore_dupes, overwrite=overwrite)

Add and pin object

This endpoint adds a pin to the IPFS daemon.

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.PinningApi(estuary_client.ApiClient(configuration))
body = estuary_client.TypesIpfsPin() # TypesIpfsPin | Pin Body {cid:cid, name:name}
ignore_dupes = 'ignore_dupes_example' # str | Ignore Dupes (optional)
overwrite = 'overwrite_example' # str | Overwrite conflicting files in collections (optional)

try:
# Add and pin object
api_response = api_instance.pinning_pins_post(body, ignore_dupes=ignore_dupes, overwrite=overwrite)
pprint(api_response)
except ApiException as e:
print("Exception when calling PinningApi->pinning_pins_post: %s\n" % e)

Parameters

NameTypeDescriptionNotes
bodyTypesIpfsPinPin Body {cid:cid, name:name}
ignore_dupesstrIgnore Dupes[optional]
overwritestrOverwrite conflicting files in collections[optional]

Return type

TypesIpfsPinStatusResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]